properties of diagonal matrices